package demo.blog.controller.common;

import com.google.code.kaptcha.impl.DefaultKaptcha;
import io.swagger.annotations.Api;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@Controller
@Api(tags = "页面跳转")
public class PageController {
    @GetMapping("/login.html")
    public String toTogin(){
        return "login";
    }
    @GetMapping("/about.html")
    public String toAbout(){
        return "about";
    }
    @GetMapping("/test.html")
    public String toTest(){
        return "test";
    }
    @GetMapping("/enroll.html")
    public String toEnroll(){
        return "enroll";
    }

    @RequestMapping(value = {"/","/index.html"},method={RequestMethod.GET,RequestMethod.POST})
    public String toIndex(){
        return "index";
    }

}
